package com.jason.www;

import com.jason.www.commons.config.DruidDBConfig;
import com.jason.www.commons.config.RedisConfig;
import com.jason.www.commons.config.ShiroConfig;
import com.jason.www.commons.config.WebMvcConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication				//启动类
@ServletComponentScan				//自动扫描servlet和filter。
@EnableScheduling					//开启定时任务
@EnableTransactionManagement		//开启注解事务管理，等同于xml配置文件中的 <tx:annotation-driven />
@EnableConfigurationProperties({DruidDBConfig.class,RedisConfig.class,ShiroConfig.class, WebMvcConfig.class})
public class SpringbootReview2018Application {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootReview2018Application.class, args);
	}
}
